package cn.swpu.view.action;

import cn.swpu.service.TestService;
import com.opensymphony.xwork2.ActionSupport;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * Created by 11616 on 2016/6/16.
 */
@Controller("testaction")
@Scope("prototype")
public class TestAction extends ActionSupport {
    @Resource
    private TestService testService;
    public String execute(){
        testService.saveUsers();
        return "success";
    }
}
